package com.xyf.statistics.controller;


import com.seventh.common.pojo.R;
import com.xyf.statistics.service.OrderStatisticsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: clms-seventh
 * @description:
 * @author: 徐亚飞
 * @create: 2021-07-25 14:12
 **/

@RestController
@RequestMapping("statistics/order")
@Api(tags="维修厂收入统计统计模块")
public class OrderStatisticController {

    @Resource
    OrderStatisticsService service;

    @PostMapping("selectOrder/{startDate}")
    @ApiOperation("收入统计查询")
    public R selectOrder(
            @ApiParam(name = "ymonth", value = "年(yyyy)", required = true)
            @PathVariable("startDate") String ymonth){

        return service.selectOrder(ymonth);
    }
}
